package org.com.mars.service.system;

import java.util.List;

import javax.annotation.Resource;

import org.com.mars.dao.system.SysAuthorityResourceDao;
import org.springframework.stereotype.Service;

@Service
public class SysAuthorityResourceService {

	@Resource
	private SysAuthorityResourceDao sysAuthorityResourceDao;

	/**
	 * 通过url取得用户的权限一览信息.
	 * 
	 * @param url
	 * @return
	 */
	public List<String> getAuthoritiesByUrl(String url) {
		List<String> sysRoleAuthorities = sysAuthorityResourceDao.getAuthoritiesByUrl(url);
		return sysRoleAuthorities;
	}

}
